package com.nanyang.tms.dao.company;

import com.nanyang.tms.domain.company.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>CompanyTransactionRecordDao.java</p>
 * <p>Description:(交易明细表)</p>
 *
 * @author lv
 * @date 2022年11月12日 下午10:46:16
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Mapper
public interface CompanyTransactionRecordDao {
    /**
     * <p>deleteByPrimaryKey</p>
     * <p>Description:(根据主键删除)</p>
     *
     * @param id
     * @return int
     */
    int deleteByPrimaryKey(Long id);

    /**
     * <p>insert</p>
     * <p>Description:(新增（所有列）)</p>
     *
     * @param record
     * @return int
     */
    int insert(CompanyTransactionRecordDO record);


    /**
     * <p>selectByPrimaryKey</p>
     * <p>Description:(根据主键查询)</p>
     *
     * @param id
     * @return CompanyTransactionRecordDO
     */
    CompanyTransactionRecordDO selectByPrimaryKey(Long id);

    /**
     * <p>updateByPrimaryKeySelective</p>
     * <p>Description:(修改(选择的列))</p>
     *
     * @param record
     * @return int
     */
    int update(CompanyTransactionRecordDO record);

    /**
     * <p>countTransaction</p>
     * <p>Description:总数</p>
     *
     * @param query
     * @return
     */
    Integer countTransaction(CompanyTransactionRecordQuery query);

    /**
     * <p>listTransaction</p>
     * <p>Description:列表</p>
     *
     * @param query
     * @return
     */
    List<CompanyTransactionRecordVO> listTransaction(CompanyTransactionRecordQuery query);
}